package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问题答案业务对象 p_answer
 *
 * @author ruoyi
 * @date 2022-07-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("问题答案业务对象")
public class PAnswerBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 问题id
     */
    @ApiModelProperty(value = "问题id", required = true)
    @NotNull(message = "问题id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long qId;

    /**
     * 回复用户
     */
    @ApiModelProperty(value = "回复用户", required = true)
    @NotNull(message = "回复用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long replyUserId;

    /**
     * 回复标题
     */
    @ApiModelProperty(value = "回复标题", required = true)
    @NotBlank(message = "回复标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String replyTitle;

    /**
     * 回复信息
     */
    @ApiModelProperty(value = "回复信息", required = true)
    @NotBlank(message = "回复信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String replyMsg;

    /**
     * 回复类型 0 咨询师 1 用户
     */
    @ApiModelProperty(value = "回复类型 0 咨询师 1 用户", required = true)
    @NotBlank(message = "回复类型 0 咨询师 1 用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 分类标签id
     */
    @ApiModelProperty(value = "分类标签id", required = true)
    @NotNull(message = "分类标签id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;


}
